package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@Component
@FeignClient(name = "service-oss",fallback = OssFileDegradeFeignClient.class)
public interface OssClient {

    /**
     * 上传图片到oss
     * @param file
     * @return
     */
    @PostMapping("/oss/fileoss/uploadOss")
    public R uploadOssFile(MultipartFile file);
}
